home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / ArchiveUtils / Opener3.3 / Opener.app / Opener.table < prev    next >
Text File  |  1995-06-12  |  6KB  |  120 lines

  1. #
  2. # These suffix/command pairs tell Opener how to unpack archive files.
  3. # Some abbreviations in the command are expanded before execution:
  4. #    unpack: ... => mkdir $t; cd $t; ...
  5. #    $f          => the current filename
  6. #    $g          => $f without the path
  7. #    $r          => $f without any extensions
  8. #    $R          => $f without any extensions and without the path
  9. #    $e          => all the extensions (including the dot)
  10. #    $t          => the temporary filename; if $f = /a/b/c.suff, $t is /tmp/O_c
  11. #    $p/...      => look for ... in the internal directory;
  12. #                   e.g., $p/unsit => /LocalApps/Opener.app/unsit
  13. # You can edit the following commands (for example, to use new
  14. # or different archivers).  To add new filetypes, look at
  15. # Opener.app/README.rtfd, or in Controller.m
  16. #
  17. # NOTE: .gz must appear in this list AFTER all other extensions which end in
  18. # .gz (such as .tar.gz).
  19. #
  20. Unpack:
  21. .arc    unpack: $p/arc ox $f >> /tmp/console.log
  22. .ARC    unpack: $p/arc ox $f >> /tmp/console.log
  23. .arj    unpack: $p/unarj e $f >> /tmp/console.log
  24. .ARJ    unpack: $p/unarj e $f >> /tmp/console.log
  25. .asc    $p/atob < $f > $t
  26. .ASC    $p/atob < $f > $t
  27. .au     cp $f $t.snd; open $t.snd
  28. .AU     cp $f $t.snd; open $t.snd
  29. .bin    unpack: $p/macunpack -3 $f >> /tmp/console.log
  30. .BIN    unpack: $p/macunpack -3 $f >> /tmp/console.log
  31. .compressed /usr/ucb/zcat < $f | (mkdir $t; cd $t; gnutar xpf -)
  32. .COMPRESSED /usr/ucb/zcat < $f | (mkdir $t; cd $t; gnutar xpf -)
  33. .cpt    unpack: $p/macunpack -3 $f >> /tmp/console.log
  34. .CPT    unpack: $p/macunpack -3 $f >> /tmp/console.log
  35. .gnutar    unpack: gnutar xpf $f
  36. .GNUTAR    unpack: gnutar xpf $f
  37. .gnutar.gz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  38. .gnutar.z $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  39. .gsm    $p/untoast -s < $f > $t
  40. .GSM    $p/untoast -s < $f > $t
  41. .hqx    unpack: $p/hexbin -3 $f >> /tmp/console.log
  42. .HQX    unpack: $p/hexbin -3 $f >> /tmp/console.log
  43. .lha    unpack: $p/lha xf $f >> /tmp/console.log
  44. .LHA    unpack: $p/lha xf $f >> /tmp/console.log
  45. .lzh    unpack: $p/lha xf $f >> /tmp/console.log
  46. .LZH    unpack: $p/lha xf $f >> /tmp/console.log
  47. .mime   unpack: $p/munpack $f >> /tmp/console.log; open *
  48. .MIME   unpack: $p/munpack $f >> /tmp/console.log; open *
  49. .shar   unpack: sed '1,/[^:\#]/d' $f | /bin/sh
  50. .SHAR   unpack: sed '1,/[^:\#]/d' $f | /bin/sh
  51. .shar.gz $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  52. .shar.z $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  53. .shar.Z $p/gzip -d < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  54. .sit    unpack: $p/macunpack -3 $f >> /tmp/console.log
  55. .SIT    unpack: $p/macunpack -3 $f >> /tmp/console.log
  56. .tar    unpack: gnutar xpf $f
  57. .TAR    unpack: gnutar xpf $f
  58. .tar.gz $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  59. .tar.z  $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  60. .tar.Z  $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  61. .taz    $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  62. .TAZ    $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  63. .tgz    $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  64. .TGZ    $p/gzip -d < $f | (mkdir $t; cd $t; gnutar xpf -)
  65. .uu     unpack: uudecode $f; open *
  66. .UU     unpack: uudecode $f; open *
  67. .gz     $p/gzip -d < $f > $t
  68. .GZ     $p/gzip -d < $f > $t
  69. .z      $p/gzip -d < $f > $t
  70. .Z      $p/gzip -d < $f > $t
  71. .zip    unpack: $p/unzip -o $f >> /tmp/console.log
  72. .ZIP    unpack: $p/unzip -o $f >> /tmp/console.log
  73. .zoo    unpack: $p/booz x $f >> /tmp/console.log
  74. .ZOO    unpack: $p/booz x $f >> /tmp/console.log
  75.  
  76. # These commands create archive files.  The semantics are as above, but:
  77. #    $d          => the deepest directory path (e.g., /a/b/{c,d,e} => /a/b)
  78. #    $f          => the filenames, less the $d prefix portion.
  79. #    $F          => the filenames
  80. #    $t          => the tmp file, /tmp/O_..., where ... => first file in $f.
  81. #    $p/...      => look for ... in the internal directory;
  82. #                   e.g., $p/unsit => /LocalApps/Opener.app/unsit
  83. # In general, the archiving command will look like:  
  84. #    (cd $d; ... $f > $t; echo $t done)
  85. #
  86. # NOTE: .gz must appear in this list AFTER all other extensions which end in
  87. # .gz (such as .tar.gz).  Otherwise the wrong file type may be constructed.
  88. #
  89. Pack:
  90. .arc    (cd $d; $p/arc a $t $f >> /tmp/console.log; echo $t done)
  91. .asc    (cd $d; $p/btoa < $f > $t; echo $t done)
  92. .compressed (cd $d; gnutar cf - $f | compress > $t; echo $t done)
  93. .gnutar    (cd $d; gnutar cf - $f > $t; echo $t done)
  94. .gnutar.gz (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
  95. .gnutar.z (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
  96. .gsm    (cd $d; $p/toast -cs < $f > $t; echo $t done)
  97. .lha    (cd $d; $p/lha c $t $f >> /tmp/console.log; echo $t done)
  98. .lzh    (cd $d; $p/lha c $t $f >> /tmp/console.log; echo $t done)
  99. .mime    (cd $d; $p/mpack -s "" -o $t $f; echo $t done)
  100. .shar   (cd $d; shar $f > $t; echo $t done)
  101. .shar.gz (cd $d; shar $f | $p/gzip > $t; echo $t done)
  102. .shar.z (cd $d; shar $f | $p/gzip > $t; echo $t done)
  103. .shar.Z (cd $d; shar $f | compress > $t; echo $t done)
  104. .tar    (cd $d; gnutar cf - $f > $t; echo $t done)
  105. .tar.gz (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
  106. .tar.z  (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
  107. .tar.Z  (cd $d; gnutar cf - $f | compress > $t; echo $t done)
  108. .taz    (cd $d; gnutar cf - $f | compress > $t; echo $t done)
  109. .tgz    (cd $d; gnutar cf - $f | $p/gzip > $t; echo $t done)
  110. .uu     (cd $d; uuencode $f $f > $t; echo $t done)
  111. .gz        (cd $d; $p/gzip < $f > $t; echo $t done)
  112. .z        (cd $d; $p/gzip < $f > $t; echo $t done)
  113. .Z        (cd $d; compress < $f > $t; echo $t done)
  114. .zip    (cd $d; $p/zip $t $f >> /tmp/console.log; echo $t done)
  115.  
  116. # drop a directory on Opener and pick "submit" to automatically
  117. # ftp the .tar.Z and README files to NeXT archive sites and
  118. # alert the archivists.  NB, directory must include a README file.
  119. remote    (cd $d; $p/Submit $f)
  120.